package com.jrx.anytxn.reporting.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.reporting.bean.PaymentDataBean;
import com.jrx.anytxn.reporting.dto.MrPaymentLogRes;
import com.jrx.anytxn.transaction.entity.TlPaymentLog;

import java.util.List;

public interface IPaymentLogDataService {

    /**
     * 抽取要上报的数据
     * @param tlPaymentLog
     * @return
     */
    PaymentDataBean assemPaymentLogData(TlPaymentLog tlPaymentLog) throws TxnBizException;

    /**
     * 保存还款流水数据
     */
    void generatePaymentLogInfo(PaymentDataBean paymentDataBean);

    List<MrPaymentLogRes> getMrPaymentLogByTenantIdAndLoanIdAndCusId( String tenantId, String loanId, String customerId);
}
